#ifndef __GROUPMODEL_H__
#define __GROUPMODEL_H__

#include "groupuser.hpp"
#include "group.hpp"
#include <vector>

class GroupModel
{
public:
    bool createGroup(Group &group);
    bool addGroup(int userid, int groupid, const std::string &role);
    std::vector<Group> queryGroups(int userid);
    std::vector<int> queryGroupUsers(int userid, int groupid);
};

#endif
